package com.diandian.backend.product.dto;

import com.diandian.base.boot.starter.exception.DefaultException;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class ProductOfflineInfoAddParamDTO implements Serializable {

	private String belong;
	private Long id;
	private String code;
	private String name;
	private String description;
	private String categoryCode;
	private String brandCode;
	private Integer recommend;
	private Integer originType;
	private String originName;
	private String packing;
	private Integer saleType;
	private String sellPoint;
	private Integer returnWithoutReason;
	private Integer returnWithoutReasonDays;
	private String saveWay;
	private String model;
	private Long price;
	private String upc;
	private String upcImage;
	private String color;
	private String shelvesCode;
	private String weight;
	private String weightUnit;
	private Long length;
	private Long width;
	private Long height;
	private Integer qualityGuaranteePeriod;
	private String qualityGuaranteePeriodUnit;
	private Integer onShelvesStatus;
	private String useScope;
	private String extend;
	private String createUserId;
	private String createUesrName;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private String updateUserId;
	private String updateUserName;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	private Integer del;
	private List<ProductOfflineInfoSkuAddParamDTO> skuList;
	private List<ProductOfflineInfoPictureVideoAddParamDTO> fileList;

	public void check(){
		if(this.belong == null || "".equals(this.belong)){
			throw new DefaultException("归属标识不能为空");
		}
		if(this.code == null || "".equals(this.code)){
			throw new DefaultException("商品编码不能为空");
		}
	}

	public Long getId() {
		return id;
	}
	public Long setId(Long id) {
		return this.id = id;
	}
	public String getCode() {
		return code;
	}
	public String setCode(String code) {
		return this.code = code;
	}
	public String getName() {
		return name;
	}
	public String setName(String name) {
		return this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public String setDescription(String description) {
		return this.description = description;
	}
	public String getCategoryCode() {
		return categoryCode;
	}
	public String setCategoryCode(String categoryCode) {
		return this.categoryCode = categoryCode;
	}
	public String getBrandCode() {
		return brandCode;
	}
	public String setBrandCode(String brandCode) {
		return this.brandCode = brandCode;
	}
	public Integer getRecommend() {
		return recommend;
	}
	public Integer setRecommend(Integer recommend) {
		return this.recommend = recommend;
	}
	public Integer getOriginType() {
		return originType;
	}
	public Integer setOriginType(Integer originType) {
		return this.originType = originType;
	}
	public String getOriginName() {
		return originName;
	}
	public String setOriginName(String originName) {
		return this.originName = originName;
	}
	public String getPacking() {
		return packing;
	}
	public String setPacking(String packing) {
		return this.packing = packing;
	}
	public Integer getSaleType() {
		return saleType;
	}
	public Integer setSaleType(Integer saleType) {
		return this.saleType = saleType;
	}
	public String getSellPoint() {
		return sellPoint;
	}
	public String setSellPoint(String sellPoint) {
		return this.sellPoint = sellPoint;
	}
	public Integer getReturnWithoutReason() {
		return returnWithoutReason;
	}
	public Integer setReturnWithoutReason(Integer returnWithoutReason) {
		return this.returnWithoutReason = returnWithoutReason;
	}
	public Integer getReturnWithoutReasonDays() {
		return returnWithoutReasonDays;
	}
	public Integer setReturnWithoutReasonDays(Integer returnWithoutReasonDays) {
		return this.returnWithoutReasonDays = returnWithoutReasonDays;
	}
	public String getSaveWay() {
		return saveWay;
	}
	public String setSaveWay(String saveWay) {
		return this.saveWay = saveWay;
	}
	public String getModel() {
		return model;
	}
	public String setModel(String model) {
		return this.model = model;
	}
	public Long getPrice() {
		return price;
	}
	public Long setPrice(Long price) {
		return this.price = price;
	}
	public String getUpc() {
		return upc;
	}
	public String setUpc(String upc) {
		return this.upc = upc;
	}
	public String getUpcImage() {
		return upcImage;
	}
	public String setUpcImage(String upcImage) {
		return this.upcImage = upcImage;
	}
	public String getColor() {
		return color;
	}
	public String setColor(String color) {
		return this.color = color;
	}
	public String getShelvesCode() {
		return shelvesCode;
	}
	public String setShelvesCode(String shelvesCode) {
		return this.shelvesCode = shelvesCode;
	}
	public String getWeight() {
		return weight;
	}
	public String setWeight(String weight) {
		return this.weight = weight;
	}
	public String getWeightUnit() {
		return weightUnit;
	}
	public String setWeightUnit(String weightUnit) {
		return this.weightUnit = weightUnit;
	}
	public Long getLength() {
		return length;
	}
	public Long setLength(Long length) {
		return this.length = length;
	}
	public Long getWidth() {
		return width;
	}
	public Long setWidth(Long width) {
		return this.width = width;
	}
	public Long getHeight() {
		return height;
	}
	public Long setHeight(Long height) {
		return this.height = height;
	}
	public Integer getQualityGuaranteePeriod() {
		return qualityGuaranteePeriod;
	}
	public Integer setQualityGuaranteePeriod(Integer qualityGuaranteePeriod) {
		return this.qualityGuaranteePeriod = qualityGuaranteePeriod;
	}
	public String getQualityGuaranteePeriodUnit() {
		return qualityGuaranteePeriodUnit;
	}
	public String setQualityGuaranteePeriodUnit(String qualityGuaranteePeriodUnit) {
		return this.qualityGuaranteePeriodUnit = qualityGuaranteePeriodUnit;
	}
	public Integer getOnShelvesStatus() {
		return onShelvesStatus;
	}
	public Integer setOnShelvesStatus(Integer onShelvesStatus) {
		return this.onShelvesStatus = onShelvesStatus;
	}
	public String getUseScope() {
		return useScope;
	}
	public String setUseScope(String useScope) {
		return this.useScope = useScope;
	}
	public String getExtend() {
		return extend;
	}
	public String setExtend(String extend) {
		return this.extend = extend;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public String setCreateUserId(String createUserId) {
		return this.createUserId = createUserId;
	}
	public String getCreateUesrName() {
		return createUesrName;
	}
	public String setCreateUesrName(String createUesrName) {
		return this.createUesrName = createUesrName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public Date setCreateTime(Date createTime) {
		return this.createTime = createTime;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public String setUpdateUserId(String updateUserId) {
		return this.updateUserId = updateUserId;
	}
	public String getUpdateUserName() {
		return updateUserName;
	}
	public String setUpdateUserName(String updateUserName) {
		return this.updateUserName = updateUserName;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public Date setUpdateTime(Date updateTime) {
		return this.updateTime = updateTime;
	}
	public Integer getDel() {
		return del;
	}
	public Integer setDel(Integer del) {
		return this.del = del;
	}

	public List<ProductOfflineInfoSkuAddParamDTO> getSkuList() {
		return skuList;
	}

	public void setSkuList(List<ProductOfflineInfoSkuAddParamDTO> skuList) {
		this.skuList = skuList;
	}

	public List<ProductOfflineInfoPictureVideoAddParamDTO> getFileList() {
		return fileList;
	}

	public void setFileList(List<ProductOfflineInfoPictureVideoAddParamDTO> fileList) {
		this.fileList = fileList;
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}
}
